package nowCoder;

import java.util.LinkedList;

public class HJ52 {
    public static void main(String[] args) {
        LinkedList<String> a = new LinkedList<>();
        a.add("1");
        a.add("2");
        a.add("3");
        a.add("4");
        System.out.println(a.pollFirst());
        System.out.println(a.pollFirst());
    }
}
